import "./App.less";
import { IndexView } from "./pages";
import { LoginIndexView } from "./pages/login";
import { useAuthContextHook } from "./contexts/auth-context";

function App() {
  const { user } = useAuthContextHook();
  return <div className="App">{user ? <IndexView /> : <LoginIndexView />}</div>;
}

export default App;
